package com.itheima.wallet.api;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.wallet.common.domain.Trade;

import java.util.List;

/**
 * @Author HuangYuChen
 * @Date 2021/3/8 19:26
 * @Description: // TODO
 **/
public interface TradeService extends IService<Trade> {

    /**
     * 插入账单记录
     * @param trade
     * @return
     */
    Boolean insertTrade(Trade trade);

    /**
     * 分页查询用户的账单
     *
     * @param page
     * @param pageSize
     * @param account_id
     * @return
     */
    List<Trade> queryTradeList(Integer page, Integer pageSize, String account_id);
}
